package com.cloudjiang.controller.utils;

import lombok.Data;

/**
 * @author cloudJiang
 * @date 2021/11/17 10:59
 * <p>
 * 用于实现数据表现的统一,使用lombok简化get set等方法
 */

@Data
public class R {
    private Boolean flag;
    private Object data;
    private String msg;

    public R() {
    }

    public R(Boolean flag) {
        this.flag = flag;
    }

    public R(Boolean flag, Object data) {
        this.flag = flag;
        this.data = data;
    }

    public R(Boolean flag, String msg) {
        this.flag = flag;
        this.msg = msg;
    }
}
